package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbMemberLevel", description="判断是否是否有优惠实体类")
@TableName(value = "tb_member_level")
public class TbMemberLevel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty("会员等级名称")
    @TableField(value = "name")
    private String name;

    @TableField(value = "growth_point")
    @ApiModelProperty(value = "成长值")
    private Integer growthPoint;

    @ApiModelProperty(value = "是否为默认等级：0->不是；1->是")
    @TableField(value = "default_status")
    private Integer defaultStatus;

    @ApiModelProperty(value = "免运费标准")
    @TableField(value = "free_freight_point")
    private BigDecimal freeFreightPoint;

    @ApiModelProperty(value = "是否有评论获奖励特权")
    @TableField(value = "priviledge_comment")
    private Integer priviledgeComment;

    @ApiModelProperty(value = "是否有专享活动特权")
    @TableField(value = "priviledge_promotion")
    private Integer priviledgePromotion;

    @ApiModelProperty(value = "是否有会员价格特权")
    @TableField(value = "priviledge_member_price")
    private Integer priviledgeMemberPrice;

    @ApiModelProperty(value = "是否有生日特权")
    @TableField(value = "priviledge_birthday")
    private Integer priviledgeBirthday;

    @ApiModelProperty(value = "笔记")
    @TableField(value = "note")
    private String note;

    @ApiModelProperty(value = "普通1 白银1.2 黄金1.5....")
    @TableField(value = "ratio")
    private Double ratio;


}
